import glob
import os
import pdb
if  __name__ == '__main__':
    
    trains = glob.glob('new_datas/train/*')
    tests = glob.glob('new_datas/test/*')
    
    for train in trains:
        out = train.replace('new_datas','output')
        os.system('/home/openface-build/build/bin/FaceLandmarkImg -fdir {0} -out_dir  {1}'.format(train,out))
    
    for test in tests:
        out = test.replace('new_datas','output')
        os.system('/home/openface-build/build/bin/FaceLandmarkImg -fdir {0} -out_dir  {1}'.format(test,out))